package com.charlie.meetingmanagement.mapper;
import com.charlie.meetingmanagement.pojo.po.User;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface UserMapper {
    List<User> userLogin();

    List<User> select();

    Long count(Integer userId, String userName, Integer userAge, String userTel, String userEmail,
               Integer userRoleA, Integer userRoleB, Integer userRoleC, Integer userSuperAdmin);

    List<User> page(Integer userId, String userName, Integer userAge, String userTel, String userEmail,
                    Integer userRoleA, Integer userRoleB, Integer userRoleC, Integer userSuperAdmin);

    void register(User user);

    void update(User user);

    void delete(Integer userId);

    User selectById(Integer userId);

    boolean adminLogin(Integer userId, String userPassword);

    void banById(Integer userId, Integer isBanned);

    User getById(Integer userId);

    User getByUsername(String userName);

    void updateRole(User user);
}

